NexusPi Git Node
nrf52_hash.py copilot/add-rtnode-configuration-options (9529fa8a) Text, 999 B
T8b949e#!/usr/bin/env python
T8b949e# Copyright (C) 2023, Mark Qvist
T8b949e# This program is free software: you can redistribute it and/or modify
T8b949e# it under the terms of the GNU General Public License as published by
T8b949e# the Free Software Foundation, either version 3 of the License, or
T8b949e# (at your option) any later version.
T8b949e# This program is distributed in the hope that it will be useful,
T8b949e# but WITHOUT ANY WARRANTY; without even the implied warranty of
T8b949e# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
T8b949e# GNU General Public License for more details.
T8b949e# You should have received a copy of the GNU General Public License
T8b949e# along with this program. If not, see <https://www.gnu.org/licenses/>.
Tff7b72import T7ee787os
Tff7b72import T7ee787sys
Tff7b72import T7ee787RNS
Tff7b72import T7ee787json
Tff7b72import T7ee787hashlib
Te6edf3major_version Tff7b72= Tff7b72None
Te6edf3minor_version Tff7b72= Tff7b72None
Te6edf3target_version Tff7b72= Tff7b72None
Te6edf3target_file Tff7b72= Te6edf3osTff7b72.Td2a8ffpathTff7b72.Td2a8ffjoinTb4b4b4(Te6edf3sysTff7b72.Td2a8ffargvTb4b4b4[T79c0ff1Tb4b4b4]Tb4b4b4)
Te6edf3firmware_data Tff7b72= Tffa657openTb4b4b4(Te6edf3target_fileTb4b4b4, Ta5d6ff"Ta5d6ffrbTa5d6ff"Tb4b4b4)Tff7b72.Td2a8ffreadTb4b4b4(Tb4b4b4)
Te6edf3calc_hash Tff7b72= Te6edf3hashlibTff7b72.Td2a8ffsha256Tb4b4b4(Te6edf3firmware_dataTb4b4b4)Tff7b72.Td2a8ffdigestTb4b4b4(Tb4b4b4)
Tffa657printTb4b4b4(Te6edf3RNSTff7b72.Td2a8ffhexrepTb4b4b4(Te6edf3calc_hashTb4b4b4, Te6edf3delimitTff7b72=Tff7b72FalseTb4b4b4)Tb4b4b4)
Served by rngit 1.4.2 - Generated in 0.01s